/**
 * Copyright (c) 2015-2016, Michael Yang 杨福海 (fuhai999@gmail.com).
 *
 * Licensed under the GNU Lesser General Public License (LGPL) ,Version 3.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.gnu.org/licenses/lgpl-3.0.txt
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.wzgl.core.xny.model;

import java.util.Date;

import com.jfinal.plugin.activerecord.IBean;
import com.wzgl.core.base.JModel;

/**
 *  Auto generated by JPress, do not modify this file.
 */
@SuppressWarnings("serial")
public abstract class BaseXnyTnews<M extends BaseXnyTnews<M>> extends JModel<M> implements IBean {
	@Override
	public boolean equals(Object o) {
		if(o == null){ return false; }
		if(!(o instanceof BaseXnyTnews<?>)){return false;}

		BaseXnyTnews<?> m = (BaseXnyTnews<?>) o;
		if(m.getId() == null){return false;}

		return m.getId().compareTo(this.getId()) == 0;
	}

	@Override
	public boolean save() {
		boolean saved = super.save();
		return saved;
	}

	@Override
	public boolean delete() {
		boolean deleted = super.delete();
		return deleted;
	}

	@Override
	public boolean deleteById(Object idValue) {
		boolean deleted = super.deleteById(idValue);
		return deleted;
	}

	@Override
	public boolean update() {
		boolean update = super.update();
		return update;
	}

	public void setId(java.lang.Integer id) {
		set("Id", id);
	}

	public java.lang.String getId() {
		Object id = get("Id");
		if (id == null)
			return null;

		return id.toString();
	}
	/***
	 * 发布时间 上传时间
	 * @param DateTime
	 */
	public void setDateTime(java.util.Date DateTime) {
		set("DateTime", DateTime);
	}
	/***
	 * 发布时间 上传时间
	 * @param DateTime
	 */
	public Date getDateTime(java.util.Date id) {
		return get("DateTime");
	}
	/***
	 * 同步到PC端 
	 * @param DeviceP
	 */
	public void setDeviceP(Boolean DeviceP){
		set("DeviceP",DeviceP);
	}
	/***
	 * 同步到PC端
	 * @param DeviceP
	 */
	public Boolean getDeviceP(){
		return get("DeviceP");
	}
	/***
	 * 同步到手机端
	 * @param DeviceM
	 */
	public void setDeviceM(Boolean DeviceM){
		set("DeviceM",DeviceM);
	}
	/***
	 * 同步到手机端
	 * @param DeviceM
	 */
	public Boolean getDeviceM(){
		return get("DeviceM");
	}
	/**
	 * 同步到微信端
	 * @param DeviceW
	 */
	public void setDeviceW(Boolean DeviceW){
		set("DeviceW",DeviceW);
	}
	/**
	 * 同步到微信端
	 * @param DeviceW
	 */
	public Boolean getDeviceW(){
		return get("DeviceW");
	}
	/**
	 * 同步到APP端 
	 * @param DeviceApp
	 */
	public void setDeviceApp(Boolean DeviceApp){
		set("DeviceApp",DeviceApp);
	}
	/**
	 * 同步到APP端 
	 * @param DeviceApp
	 */
	public Boolean getDeviceApp(){
		return get("DeviceApp");
	}
	/***
	 * 标题
	 * @param Title
	 */
	public void setTitle(String Title){
		set("Title",Title);
	}
	/***
	 * 标题
	 * @param Title
	 */
	public String getTitle(){
		return get("Title");
	}
	/***
	 * 作者
	 * @param Author
	 */
	public void setAuthor(String Author){
		set("Author",Author);
	}
	/***
	 * 作者
	 * @param Author
	 */
	public String getAuthor(){
		return get("Author");
	}
	/***
	 * 来源
	 * @param CopyFrom
	 */
	public void setCopyFrom(String CopyFrom){
		set("CopyFrom",CopyFrom);
	}
	/***
	 * 来源
	 * @param CopyFrom
	 */
	public String getCopyFrom(){
		return get("CopyFrom");
	}
	/***
	 * 点击数 新增50-100随机数
	 * @param ClickCount
	 */
	public void setClickCount(String ClickCount){
		set("ClickCount",ClickCount);
	}
	/***
	 * 点击数 新增50-100随机数
	 * @param ClickCount
	 */
	public String getClickCount(){
		return get("ClickCount");
	}
	/***
	 * 是否推荐
	 * @param IsHot
	 */
	public void setIsHot(Boolean IsHot){
		set("IsHot",IsHot);
	}
	/***
	 * 是否推荐
	 * @param IsHot
	 */
	public Boolean getIsHot(){
		return get("IsHot");
	}
	/***
	 * 是否允许评论
	 * @param IsAllowComments
	 */
	public void setIsAllowComments(Boolean IsAllowComments){
		set("IsAllowComments",IsAllowComments);
	}
	/***
	 * 是否允许评论
	 * @param IsAllowComments
	 */
	public Boolean getIsAllowComments(){
		return get("IsAllowComments");
	}
	/***
	 * 关联新闻的URL
	 * @param WaterMarkConfig
	 */
	public void setWaterMarkConfig(String WaterMarkConfig){
		set("WaterMarkConfig",WaterMarkConfig);
	}
	/***
	 * 关联新闻的URL
	 * @param WaterMarkConfig
	 */
	public String getWaterMarkConfig(){
		return get("WaterMarkConfig");
	}
	/**
	 * 关联会员ID 后台添加默认0
	 * @param UserId
	 */
	public void setUserId(Integer UserId){
		set("UserId",UserId);
	}
	/**
	 * 关联会员ID 后台添加默认0 
	 * @param UserId
	 */
	public Integer getUserId(){
		return get("UserId");
	}
	/***
	 * 针对会员 后台添加默认null
	 * @param ToUserId
	 */
	public void setToUserId(Integer ToUserId){
		set("ToUserId",ToUserId);
	}
	/***
	 * 针对会员 后台添加默认null
	 * @param ToUserId
	 */
	public Integer getToUserId(){
		return get("ToUserId");
	}
	/***
	 * 未知? 后台添加默认null
	 * @param ParentId
	 */
	public void setParentId(Integer ParentId){
		set("ParentId",ParentId);
	}
	/***
	 * 未知? 后台添加默认null
	 * @param ParentId
	 */
	public Integer getParentId(){
		return get("ParentId");
	}
	/***
	 * 猜测为转换静态HTML保存路径
	 * @param HtmlSaveDirectory
	 */
	public void setHtmlSaveDirectory(String HtmlSaveDirectory){
		set("HtmlSaveDirectory",HtmlSaveDirectory);
	}
	/***
	 * 猜测为转换静态HTML保存路径
	 * @param HtmlSaveDirectory
	 */
	public String getHtmlSaveDirectory(){
		return get("HtmlSaveDirectory");
	}
	/***
	 * 猜测为转换静态HTML名称,对应为标题的首字母
	 * @param HtmlFileName
	 */
	public void setHtmlFileName(String HtmlFileName){
		set("HtmlFileName",HtmlFileName);
	}
	/***
	 * 猜测为转换静态HTML名称,对应为标题的首字母
	 * @param HtmlFileName
	 */
	public String getHtmlFileName(){
		return get("HtmlFileName");
	}
	/**
	 * 未知字段 后台添加默认0
	 * @param UpdateHTML
	 */
	public void setUpdateHTML(Boolean UpdateHTML){
		set("UpdateHTML",UpdateHTML);
	}
	/**
	 * 未知字段 后台添加默认0
	 * @param UpdateHTML
	 */
	public Boolean getUpdateHTML(){
		return get("UpdateHTML");
	}
	/***
	 * 按字面意思 最后部署状态？ 1000(有效)和0000(删除) 
	 * @param LastDevStatus
	 */
	public void setLastDevStatus(String LastDevStatus){
		set("LastDevStatus",LastDevStatus);
	}
	/***
	 * 按字面意思 最后部署状态？ 1000(有效)和0000(删除) 
	 * @param LastDevStatus
	 */
	public String getLastDevStatus(){
		return get("LastDevStatus");
	}
	/***
	 * 是否审核?默认0
	 * @param IsAudited
	 */
	public void setIsAudited(Boolean IsAudited){
		set("IsAudited",IsAudited);
	}
	/***
	 * 是否审核?默认0
	 * @param IsAudited
	 */
	public Boolean getIsAudited(){
		return get("IsAudited");
	}
	
	/***
	 * 未知字段 后台添加默认0
	 * @param ReleVirtualType
	 */
	public void setReleVirtualType(Integer ReleVirtualType){
		set("ReleVirtualType",ReleVirtualType);
	}
	/***
	 * 未知字段 后台添加默认0
	 * @param ReleVirtualType
	 */
	public Integer getReleVirtualType(){
		return get("ReleVirtualType");
	}
	
	/**
	 * 用户组ID？默认为0
	 * @param UserGroupID
	 */
	public void setUserGroupID(Integer UserGroupID){
		set("UserGroupID",UserGroupID);
	}
	/**
	 * 用户组ID？默认为0
	 * @param UserGroupID
	 */
	public Integer getUserGroupID(){
		return get("UserGroupID");
	}
}
